package day10.homework;
/** 老虎类 */
public class Tiger0 extends Felidae{
    //东北虎
    private String northeasttiger;
    //华南虎
    private String southernchinatiger;
    public Tiger0(){

    }
    public Tiger0(String northeasttiger,String southernchinatiger){
        this.northeasttiger = northeasttiger;
        this.southernchinatiger = southernchinatiger;
    }
    public void alone(){
        System.out.println(this.northeasttiger + "和" + southernchinatiger + "是独居动物");
    }
}
